win32: Never pass SWP_NOSIZE or SWP_NOMOVE to SetWindowPos
authorNeil Roberts <neil@linux.intel.com>
Thu, 26 Aug 2010 18:02:00 +0000 (19:02 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:40:47 +0000 (17:40 +0100)
commit7445a59a9a994720b94a746cf410deb96d3e34ab
tree5e8ae131cd8099062e2e7761563b2e724c4fe1ed
parent06a20d207a7868f37ab037a0a0c18aa14ad13c92
win32: Never pass SWP_NOSIZE or SWP_NOMOVE to SetWindowPos

In _gdk_window_move_resize_child it tries to decide whether to pass
SWP_NOSIZE and SWP_NOMOVE based on whether the new size and position
is different from the window's existing position. However it seems
that GDK now ends up updating the window's position before calling
_gdk_window_move_resize_child so this would mean it would think the
window never changes size or position so SWP_NOSIZE|SWP_NOMOVE would
always be set. This causes child windows to never be resized.

This patch changes it so that it never passes either flag to
SetWindowPos. I don't know whether this will cause any side effects
but you'd think it shouldn't do any harm to reassert the current size.

https://bugzilla.gnome.org/show_bug.cgi?id=628049

Signed-off-by: Hans Breuer <hans@breuer.org>
gdk/win32/gdkgeometry-win32.c